package com.SSMp4v2;

public class SSMp4v2 {

    static {
        //加载libSSMp4v2.so动态库，用于测试
        System.loadLibrary("SSMp4v2");
    }

    // 媒体帧类型
    public static final int MEDIA_FRAME_UNVALID = 0;
    public static final int MEDIA_FRAME_VIDEO = 1; //  视频
    public static final int MEDIA_FRAME_AUDIO = 2;  // 音频

    public static native int fileCreate(String pFileName, int width, int height, int frameRate);

    public static native int fileWrite(int frameType, byte[] pframeBuf, int frameLen);

    public static native int fileClose();
}
